//
//  FlickrAnnotation.m
//  Paparazzi
//
//  Created by Eric Williams on 11/22/10.
//  Copyright 2010 UCLA. All rights reserved.
//

#import "FlickrAnnotation.h"
#import "Photo.h"
#import "Person.h"

@implementation FlickrAnnotation

@synthesize photo;
@synthesize image;
@synthesize latitude;
@synthesize longitude;

- (CLLocationCoordinate2D)coordinate;
{
    CLLocationCoordinate2D theCoordinate;
	
	// Set the coordinate dynamically from the Flickr
    theCoordinate.latitude = [self.latitude floatValue];
    theCoordinate.longitude = [self.longitude floatValue];
    
	return theCoordinate; 
}


- (NSString *)title
{
    return self.photo.name;
}


- (NSString *)subtitle
{
    return self.photo.user.name;
}


-(void) dealloc
{
	[image release];
	[super dealloc];
}

@end
